//
//  YHSwiftViewController.swift
//  LyhToolsTest
//
//  Created by LYH on 2018/12/28.
//  Copyright © 2018年 LYH.com. All rights reserved.
//

import UIKit

class YHSwiftViewController: UIViewController {
    //供oc调用的属性创建
    @objc var Arry0 : NSArray = NSArray()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let Backbtn:UIButton = UIButton.init(frame: CGRect.init(x:100, y: 100, width: 80, height: 30))
        Backbtn.setTitle("返回", for: UIControl.State.normal)
       Backbtn.setTitleColor(UIColor.black, for: UIControl.State.normal)
       Backbtn.titleLabel?.font = UIFont.systemFont(ofSize: 18)
      
        Backbtn.backgroundColor = UIColor.yellow
        self.view.addSubview(Backbtn)
        Backbtn.addTarget(self, action: #selector(Btnclick), for: UIControl.Event.touchUpInside)
        
        let imagv:UIImageView = UIImageView.init(frame: CGRect.init(x: 50, y: 150, width: 100, height: 100))
        self.view.addSubview(imagv)
        imagv.image = UIImage.init(named: "img1")
    // oc 传的数组
       print(Arry0)
    }
//按钮事件
  @objc  func Btnclick(){
    self.navigationController?.popViewController(animated: true);
//    let vc:YHHomepageVC = YHHomepageVC.init()
//    self.navigationController?.pushViewController(vc, animated: true)
    }
    
}
